"""
URL configuration for djangoProject project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https:#docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from cs_weixinapp.views import (ShowSettingsDetailView, appInfo, settingsdata, LoginByWeixin, deailindex, settingssave,
                                savercomment, Tuandui, Newxiangmu, CommonIndex, uploadchanyuimg, deletexiangmu,
                                uploaduserimg, serve_image, Show_admin)

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('index/appInfo', appInfo.as_view()),  # 首页数据

    path('settings/showSettings', ShowSettingsDetailView.as_view()),  # 设置样式等应该是

    path('auth/loginByWeixin', LoginByWeixin.as_view()),  # 微信登录
    path('deail/index', deailindex.as_view()),  # 参与页面
    path('settings/save', settingssave.as_view()),  # 微信登录
    path('Showroot', Show_admin.as_view()),  # 微信登录


    path('settings/data', settingsdata.as_view()),  #
    path('save/img', savercomment.as_view()),  #
    path('tuandui', Tuandui.as_view()),  # 团队
    path('newsxiangmu', Newxiangmu.as_view()),  # 创建项目
    path('commonindex', CommonIndex.as_view()),  # 创建项目
    path('uploadchanyuimg', uploadchanyuimg.as_view()),  # 创建项目
    path('uploaduserimg', uploaduserimg.as_view()),  # 创建项目



    path('deletexiangmu', deletexiangmu.as_view()),  # 创建项目


    path('images/<str:image_name>/', serve_image, name='serve_image'),


]

"""
 # 登录(?P<nid>\d+)
  AuthLoginByWeixin: ApiRootUrl + 'auth/loginByWeixin', #微信登录
  # 首页
  IndexUrl: ApiRootUrl + 'index/appInfo', #首页数据接口
  # 分类
  CatalogList: ApiRootUrl + 'catalog/index', #分类目录全部分类数据接口
  CatalogCurrent: ApiRootUrl + 'catalog/current', #分类目录当前分类数据接口
  GetCurrentList: ApiRootUrl + 'catalog/currentlist',
  # 购物车
  CartAdd: ApiRootUrl + 'cart/add', # 添加商品到购物车
  CartList: ApiRootUrl + 'cart/index', #获取购物车的数据
  CartUpdate: ApiRootUrl + 'cart/update', # 更新购物车的商品
  CartDelete: ApiRootUrl + 'cart/delete', # 删除购物车的商品
  CartChecked: ApiRootUrl + 'cart/checked', # 选择或取消选择商品
  CartGoodsCount: ApiRootUrl + 'cart/goodsCount', # 获取购物车商品件数
  CartCheckout: ApiRootUrl + 'cart/checkout', # 下单前信息确认
  # 商品
  GoodsCount: ApiRootUrl + 'goods/count', #统计商品总数
  GoodsDetail: ApiRootUrl + 'goods/detail', #获得商品的详情
  GoodsList: ApiRootUrl + 'goods/list', #获得商品列表
  GoodsShare: ApiRootUrl + 'goods/goodsShare', #获得商品的详情
  SaveUserId: ApiRootUrl + 'goods/saveUserId',
  # 收货地址
  AddressDetail: ApiRootUrl + 'address/addressDetail', #收货地址详情
  DeleteAddress: ApiRootUrl + 'address/deleteAddress', #保存收货地址
  SaveAddress: ApiRootUrl + 'address/saveAddress', #保存收货地址
  GetAddresses: ApiRootUrl + 'address/getAddresses',
  RegionList: ApiRootUrl + 'region/list', #获取区域列表
  PayPrepayId: ApiRootUrl + 'pay/preWeixinPay', #获取微信统一下单prepay_id
  OrderSubmit: ApiRootUrl + 'order/submit', # 提交订单
  OrderList: ApiRootUrl + 'order/list', #订单列表
  OrderDetail: ApiRootUrl + 'order/detail', #订单详情
  OrderDelete: ApiRootUrl + 'order/delete', #订单删除
  OrderCancel: ApiRootUrl + 'order/cancel', #取消订单
  OrderConfirm: ApiRootUrl + 'order/confirm', #物流详情
  OrderCount: ApiRootUrl + 'order/count', # 获取订单数
  OrderCountInfo: ApiRootUrl + 'order/orderCount', # 我的页面获取订单数状态
  OrderExpressInfo: ApiRootUrl + 'order/express', #物流信息
  OrderGoods: ApiRootUrl + 'order/orderGoods', # 获取checkout页面的商品列表
  # 足迹
  FootprintList: ApiRootUrl + 'footprint/list', #足迹列表
  FootprintDelete: ApiRootUrl + 'footprint/delete', #删除足迹
  # 搜索
  SearchIndex: ApiRootUrl + 'search/index', #搜索页面数据
  SearchHelper: ApiRootUrl + 'search/helper', #搜索帮助
  SearchClearHistory: ApiRootUrl + 'search/clearHistory', #搜索帮助
  ShowSettings: ApiRootUrl + 'settings/showSettings',
  SaveSettings: ApiRootUrl + 'settings/save',
  SettingsDetail: ApiRootUrl + 'settings/userDetail',
  UploadAvatar: ApiRootUrl + 'upload/uploadAvatar',
  GetBase64: ApiRootUrl + 'qrcode/getBase64', #获取商品详情二维码
"""
